//while
#include <stdio.h>

int main()
{
	int sum=0,i=1;
	/*while(i<=100)
	{
		sum+=i;
		i++;
	}
	printf("sum=%d", sum);*/
	
	do
	{
		sum+=i;
		i++;
	}while(i<=100);
	printf("sum=%d", sum);
	
	return 0;
}